package Template5::Element::Repeat;
use base qw(Template5::Element::ContainerCond);

use strict;
use warnings;

#-------------------------------------------------------------------------------
#public
sub new($$)
{
	my $class    = shift;
	my $htmlnode = shift;
	my $params   = shift;

	my $this        = $class->SUPER::new($htmlnode, $params);	
	$this->{'init'} = defined($this->{'htmlnode'}->attr('init'))?1:0;

	return $this;
};

#-------------------------------------------------------------------------------
#public
sub getstruct()
{
	my $this   = shift;
	my $retVal = $this->SUPER::getstruct();

	$retVal->attr('_saver:element', Template5::Saver->new({'id' => 1, 'cond' => 1, 'skip' => 0, 'inherited' => 0, 'nonautoid' => 0, 'inline' => 0, 'notvisible' => 0, 'init' => 0}));
	return $retVal;
}; 

1;

